package com.newlink.building.common_base.utils

/**
 * @Author: Jake
 * @Date: 2023-04-19
 * @Description:
 */
object NLog {

    fun e(s: String) {
        EnhancedLogger.e("NLog", "[New Link] >> $s")
    }

    fun i(s: String) {
        EnhancedLogger.i("NLog", s)
    }

    fun w(s: String) {
        EnhancedLogger.w("NLog", s)
    }

    fun d(s: String) {
        EnhancedLogger.d("NLog", s)
    }

    fun z(stackTraceElement: StackTraceElement, s: String) {
        val className = stackTraceElement.className
        val methodName = stackTraceElement.methodName
        val lineNumber = stackTraceElement.lineNumber
        e(
            "[ClassName: $className, MethodName: $methodName, LineNumber: $lineNumber] => $s"
        )
    }
}